//
//  ZYDiscountTagCell.m
//  AudientList
//
//  Created by zhangweiwei on 16/6/16.
//  Copyright © 2016年 Erica. All rights reserved.
//

#import "ZYDiscountTagCell.h"


NSString *const ZYDiscountTagCellReuseID = @"ZYDiscountTagCell";

@interface ZYDiscountTagCell ()
@property (weak, nonatomic) IBOutlet UILabel *textLabel;

@end

@implementation ZYDiscountTagCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.layer.cornerRadius = 2;
}

- (void)setTagModel:(ZYTagModel *)tagModel
{
    _tagModel = tagModel;
    
    self.layer.backgroundColor = tagModel.color.CGColor;
    
    self.textLabel.text = tagModel.text;
}

@end
